#ifndef CAN_H
#define CAN_H


#include "stm32f10x.h"



void Can_mode_init(uint8_t tsjw,uint8_t tbs2,uint8_t tbs1,uint16_t brp,uint8_t mode);

uint8_t Can_send_msg(uint8_t* msg,uint8_t len);						//发送数据

uint8_t Can_receive_msg(uint8_t *buf);							//接收数据

extern uint8_t data[8];

#endif 
